//
//  ScrollLoopView.h
//  WangWang
//
//  Created by he chao on 11/7/13.
//  Copyright (c) 2013 leon. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ScrollLoopView;
@protocol ScrollLoopViewDelegate <NSObject>

@optional
- (void)foucusScrollLoopView:(ScrollLoopView *)loopView currentItem:(int)index;

@end

@interface ScrollLoopView : UIView<UIGestureRecognizerDelegate, UIScrollViewDelegate>{
    BOOL isAutoPlay;
    UIScrollView *myScrollView;
    UIPageControl *pageControl;
}

- (id)initWithFrame:(CGRect)frame delegate:(id<ScrollLoopViewDelegate>)delegate views:(NSArray *)views isAuto:(BOOL)autoPlay;
- (void)scrollToIndex:(int)aIndex;

@property (nonatomic, assign) id<ScrollLoopViewDelegate> delegate;

@end
